[1,2,3,4].inject(0) {|acc,n| acc + n }
[1,2,3,4].inject do |acc,n|
	puts "adding #{acc} and #{n}...#{acc+n}"
	acc + n
end

names = %w{ David Yukiniro Chad Amy}
p names.map{|name| name.upcase}
p names.map(&:upcase)

array = [1,2,3,4,5]
array.each{|x| puts x * 100}
result = array.map{|x| puts x * 100}
p result